Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix join columnar with heap for PG16 #279

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ivan-v-kush
Copy link
Contributor

@ivan-v-kush ivan-v-kush commented Jan 20, 2025

Hydra is broken when tries join columnar with heap tables. This PR fixes it.

CREATE TABLE tbl1 (a integer);
CREATE TABLE tbl2 (a integer);
CREATE TABLE tbl3 (b integer) using columnar;
SELECT *
FROM tbl1
	LEFT JOIN tbl2 ON tbl1.a = tbl2.a
	LEFT JOIN tbl3 ON tbl2.a = tbl3.b;

the server suddenly closed the connection
        Most likely, the server stopped working due to a glitch.
        before or during the execution of the request.
Connection to the server is lost. The recovery attempt failed.
Connection to the server is lost. The recovery attempt failed.
!?> \q

This error also exists in Citus
citusdata/citus#7647

outer_join_rels were introduced in postgres/postgres@2489d76

@ivan-v-kush ivan-v-kush force-pushed the fix-outer-join-columnar-with-heap branch from 197b5d0 to d9e9a2e Compare January 20, 2025 17:48
@ivan-v-kush ivan-v-kush changed the title Fix join columnar with heap Fix join columnar with heap for PG16 Jan 20, 2025
@ivan-v-kush ivan-v-kush force-pushed the fix-outer-join-columnar-with-heap branch from d9e9a2e to 76efdc9 Compare January 21, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant